DataHandler.DataEncryptions
Provides methods to serialize, encrypt, decrypt, and deserialize objects using JSON + AES.
Serializes an object of type T to JSON, wraps it with its assembly-qualified type name, Base64-encodes, then encrypts via AES-GCM.
Parameters:
Process:
Returns: Task — The encrypted Base64 JSON wrapper as a single string.
Decrypts and deserializes a string previously produced by PackData back into the original object.
Parameters:
Process:
Returns: Task — The deserialized object instance.
Exceptions: